package com.mes.cloud.api.dto.request.productpricegroup;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 * 产品价格组
 * 
 * @author wxm
 * @version 2019-09-24 16:08:41
 * @email xiaomin.wu1@pactera.com
 */
@Data
public class ProductPriceGroupAddRequest implements Serializable{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "名称", required = true)
    @NotEmpty(message = "name不能为空")
    private String name;

    @ApiModelProperty(value = "类型", required = true)
    @NotEmpty(message = "type不能为空")
    private String type;

    @ApiModelProperty(value = "有效起始时间", required = true)
    @NotNull(message = "effectiveStartDate不能为空")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    private Date effectiveStartDate;

    @ApiModelProperty(value = "有效结束时间", required = false)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    private Date effectiveEndDate;

    @ApiModelProperty(value = "货币类型", required = false)
    private String currencyType;

    @ApiModelProperty(value = "优先级", required = false)
    private String priorityLevel;

    @ApiModelProperty(value = "备注", required = false)
    private String remark;

}
